/* 游戏详情页专用样式 */

.game-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

/* 游戏主体内容 */
.game-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

/* 游戏播放区域 */
.game-play-area {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

.game-frame-container {
  width: 100%;
  position: relative;
  background-color: #000;
}

.game-frame {
  width: 100%;
  height: 560px;
  border: none;
  display: block;
}

.fullscreen-btn {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.fullscreen-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.game-controls {
  display: flex;
  justify-content: space-between;
  padding: 15px;
  border-top: 1px solid var(--gray-color);
}

.game-actions {
  display: flex;
  gap: 15px;
}

.action-btn {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  color: var(--text-light);
  transition: var(--transition);
}

.action-btn:hover {
  color: var(--primary-color);
}

.action-icon {
  font-size: 20px;
  margin-bottom: 5px;
}

.action-text {
  font-size: 12px;
}

.game-share {
  display: flex;
  gap: 10px;
}

.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--light-color);
  color: var(--text-light);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.share-btn:hover {
  background-color: var(--primary-color);
  color: white;
}

/* 游戏信息侧边栏 */
.game-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.game-info-card {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 20px;
}

.game-title {
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--dark-color);
}

.game-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 14px;
  color: var(--text-light);
}

.meta-item {
  display: flex;
  align-items: center;
}

.meta-icon {
  margin-right: 5px;
}

.game-category-badge {
  display: inline-block;
  padding: 4px 12px;
  background-color: var(--light-color);
  border-radius: 20px;
  font-size: 12px;
  margin-bottom: 15px;
}

.game-description {
  margin-bottom: 20px;
  line-height: 1.6;
}

.game-creator {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 15px;
  border-top: 1px solid var(--gray-color);
}

.creator-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.creator-info {
  flex-grow: 1;
}

.creator-name {
  font-weight: 500;
  margin-bottom: 3px;
}

.creator-date {
  font-size: 12px;
  color: var(--text-light);
}

/* 游戏评分卡片 */
.rating-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rating-value {
  font-size: 48px;
  font-weight: bold;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 10px;
}

.rating-stars {
  display: flex;
  gap: 5px;
  margin-bottom: 15px;
}

.rating-star {
  color: #ffc107;
  font-size: 20px;
}

.rating-count {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 15px;
}

.rate-btn {
  width: 100%;
}

/* 相关游戏部分 */
.related-games {
  margin-top: 40px;
}

.related-title {
  font-size: 22px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

/* 评论部分 */
.comments-section {
  margin-top: 40px;
}

.comments-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.comments-title {
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.comment-count {
  background-color: var(--primary-color);
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 14px;
}

.comment-form {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 20px;
  margin-bottom: 30px;
}

.comment-input {
  width: 100%;
  border: 1px solid var(--gray-color);
  border-radius: var(--border-radius);
  padding: 15px;
  margin-bottom: 15px;
  resize: vertical;
  min-height: 100px;
  transition: var(--transition);
}

.comment-input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.comment-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comment-item {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 20px;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.comment-user-info {
  flex-grow: 1;
}

.comment-username {
  font-weight: 500;
  margin-bottom: 3px;
}

.comment-date {
  font-size: 12px;
  color: var(--text-light);
}

.comment-rating {
  display: flex;
  gap: 2px;
}

.comment-content {
  line-height: 1.6;
}

.comment-actions {
  display: flex;
  gap: 15px;
  margin-top: 15px;
  color: var(--text-light);
  font-size: 14px;
}

.comment-action {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: var(--transition);
}

.comment-action:hover {
  color: var(--primary-color);
}

.load-more-btn {
  margin: 30px auto;
  display: block;
}

/* 响应式调整 */
@media (max-width: 992px) {
  .game-content {
    grid-template-columns: 1fr;
  }
  
  .game-frame {
    height: 450px;
  }
  
  .related-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

@media (max-width: 768px) {
  .game-container {
    margin: 20px auto;
  }
  
  .game-frame {
    height: 400px;
  }
  
  .comment-form-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .comment-form-actions .btn {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .game-frame {
    height: 300px;
  }
  
  .game-controls {
    flex-direction: column;
    gap: 15px;
  }
  
  .related-grid {
    grid-template-columns: 1fr;
  }
} 